﻿#ifndef TOOLBARPROPERTY_H
#define TOOLBARPROPERTY_H

#include <QToolBar>
class QSpinBox;
class QCheckBox;
class DisplayWidget;
class ColorComboBox;
class ToolBarProperty : public QToolBar
{
        Q_OBJECT
public:
    ToolBarProperty(const QString &title, QWidget *parent = Q_NULLPTR);
    ToolBarProperty(QWidget *parent = Q_NULLPTR);
    void attach(DisplayWidget *widget);
private:
    void initContent();

private:
    QAction *actionUndo;
    QAction *actionDeleteAll;
    QSpinBox *spinBoxLineWidth;
    QSpinBox *spinBoxTextSize;
    ColorComboBox *colorBox;
    DisplayWidget *centerWidget;
};

#endif // TOOLBARPROPERTY_H
